﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
namespace Web.frontpage.SignUp.right
{
    public partial class ShowCon : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string conid = Request.QueryString["conId"];
            if (!string.IsNullOrEmpty(conid))
            {
                BLL.ContestService contestService = new BLL.ContestService();
                BoContests model = new BoContests();
                model = contestService.GetV_Contest(conid);
                lb_conName.InnerText = model.CON_NAME;
                lb_comName.InnerText = model.Competitions.COM_NAME;
                lb_comType.InnerText = model.Competitions.COM_TYPE == 1 ? "省级" : "校级";
                lb_conForm.InnerText = model.Competitions.COM_FORM == 1 ? "小组报名" : "个人报名";
                lb_conYear.InnerText = model.CON_YEAR.ToString();
                lb_conMonth.InnerText = model.CON_MONTH.ToString();
                lb_conAddress.InnerText = model.CON_ADDRESS;
                lb_conStartTime.InnerText = model.CON_STARTTIME.ToString();
                lb_conEndTime.InnerText = model.CON_ENDTIME.ToString();
                lb_conAuthor.InnerText = model.CON_CREATOR;
                lb_comAcademy.InnerText = model.ACA_NAME;
            }
            else
            {
                Response.Write("<script>alert('不允许改变地址');window.location.href='ConList.aspx';</script>");
            }
        }

    }
}